/* Just like std::pair, overloads < so as it 
   uses the integer key */

template <class T> class BiContainer {

 public:
  int key;
  T value;

  void set (int k, T v) { key = k; value = v; };
  bool operator <  (const BiContainer& container) const { return key < container.key; };
};
